package cn.kduck.code.entity.exception;

public class ExistFieldCodeException extends RuntimeException{

    private final String entityCode;
    private final String fieldCode;

    public ExistFieldCodeException(String entityCode,String fieldCode) {
        this.entityCode = entityCode;
        this.fieldCode = fieldCode;
    }

    public ExistFieldCodeException(String entityCode,String fieldCode, String message) {
        super(message);
        this.entityCode = entityCode;
        this.fieldCode = fieldCode;
    }

    public String getFieldCode() {
        return fieldCode;
    }

    public String getEntityCode() {
        return entityCode;
    }
}
